package com.salon.server.controller;

import com.salon.server.model.R;
import com.salon.server.service.ProductCategoryService;
import com.salon.server.service.ProjectCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/salon/projectCategory")
public class ProjectCategoryController {

    @Autowired
    private ProjectCategoryService projectCategoryService;

    @PostMapping("list")
    public R list() {
        return R.success(projectCategoryService.list());
    }

}
